

package com.hazelcast.client.impl;

/**
 * Response of Invocations when client is backup aware
 * Carries number of backups which will be delegated to clients
 */
public class ClientBackupAwareResponse {
    private final int numberOfBackups;
    private final Object response;

    public ClientBackupAwareResponse(int numberOfBackups, Object response) {
        this.numberOfBackups = numberOfBackups;
        this.response = response;
    }

    public int getNumberOfBackups() {
        return numberOfBackups;
    }

    public Object getResponse() {
        return response;
    }
}
